<div class="layui-card">
    <div class="layui-card-body">
        <form class="layui-form" action=""  method="post" id="cp-form">.

            <div class="layui-form-item">
                <label class="layui-form-label">用户名 <span class="request-tips">*</span></label>
                <div class="layui-input-block">
                    <input type="text" name="username" required  lay-verify="required" placeholder="用户名" autocomplete="off" class="layui-input">
                    <div class="layui-form-mid layui-word-aux">用户名一旦设置就不能在更改</div>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">昵称 <span class="request-tips">*</span></label>
                <div class="layui-input-block">
                    <input type="text" name="nickname" value="{$adminUser.nickname|default=''}" required  lay-verify="required" placeholder="签名" autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">积分 <span class="request-tips">*</span></label>
                <div class="layui-input-block">
                    <input type="text" name="score" value="{$adminUser.nickname|default=''}" required  lay-verify="required" placeholder="积分" autocomplete="off" class="layui-input">
                    <div class="layui-word-aux">10 积分 等于 1元</div>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">签名 <span class="request-tips">*</span></label>
                <div class="layui-input-block">
                    <textarea name="sign_name" id="" cols="30" rows="10" class="layui-textarea"></textarea>
                </div>
            </div>


            <div class="layui-form-item">
                <label class="layui-form-label">全名 <span class="request-tips">*</span></label>
                <div class="layui-input-block">
                    <input type="text" name="fullname" value=""  placeholder="全名" autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">联系手机 <span class="request-tips">*</span></label>
                <div class="layui-input-block">
                    <input type="text" name="phone" required  lay-verify="required" placeholder="联系手机" autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">联系邮件 <span class="request-tips">*</span></label>
                <div class="layui-input-block">
                    <input type="email" name="email" required  lay-verify="required" placeholder="联系邮件" autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">用户密码 <span class="request-tips">*</span></label>
                <div class="layui-input-block">
                    <input type="password" name="password" required  lay-verify="required" placeholder="用户密码" autocomplete="off" class="layui-input">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">重置密码密令 <span class="request-tips">*</span></label>
                <div class="layui-input-block">
                    <input type="text" name="password_reset_token" required  lay-verify="required" value="123456789" placeholder="重置密码密令" autocomplete="off" class="layui-input">
                    <div class="layui-form-mid layui-word-aux">用户名一旦设置就不能在更改</div>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">状态  <span class="request-tips">*</span></label>
                <div class="layui-input-block">
                    <input type="radio" name="status" value="1" checked title="启用">
                    <input type="radio" name="status" value="0" title="禁用">
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">是否管理员  <span class="request-tips">*</span></label>
                <div class="layui-input-block">
                    <input type="radio" name="is_admin" value="1"  title="启用">
                    <input type="radio" name="is_admin" value="0" title="禁用" checked>
                </div>
            </div>



            <div class="layui-form-item">
                <label class="layui-form-label">头像 <span class="request-tips">*</span></label>
                <div class="layui-input-block">
                    <button type="button" class="layui-btn" id="test1">
                        <i class="layui-icon">&#xe67c;</i>头像
                    </button>
                </div>

                <div class="layui-input-block">
                    <table class="layui-table" id="app-photo">
                        <tr>
                            <td>
                                <input type="text" class="layui-input" name="avatar" value="/uploads/user/avatar.png">
                            </td>
                            <td>
                                <img src="/uploads/user/avatar.png" alt="" width="150" >
                            </td>
                            <td>
                                <a href="javascript:;" class="layui-btn layui-btn-danger layui-btn-xs del-photos-btn">删除</a>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>

            <div class="layui-form-item">
                <div class="layui-input-block">
                    <div class="layui-text">带 * 号的为必填项</div>
                    <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
                    <a href="{:url('admin/user.index/index')}" class="layui-btn layui-btn-primary" >返回</a>
                </div>
            </div>
        </form>
    </div>
</div>
